Package com.python.pydev.actions

Source Code of com.python.pydev.actions.PyShowOutline

/**
* Copyright (c) 2005-2011 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Eclipse Public License (EPL).
* Please see the license.txt included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
/*
* Created on Jan 15, 2006
*/
package com.python.pydev.actions;

import org.eclipse.jface.action.IAction;
import org.python.pydev.editor.PyEdit;
import org.python.pydev.editor.actions.PyAction;
import org.python.pydev.ui.dialogs.TreeSelectionDialog;

public class PyShowOutline extends PyAction {

    public void run(IAction action) {

        PyEdit pyEdit = getPyEdit();

        TreeSelectionDialog dialog = new PyOutlineSelectionDialog(PyAction.getShell(), pyEdit);

        dialog.open(); //The dialog will take care of everything.
    }

}
TOP

Related Classes of com.python.pydev.actions.PyShowOutline

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.